var app = getApp()
Page({

    /**
     * 页面的初始数据
     */
    data: {
        issuccessMask: false,
        // 产品图
        productFigureList:["https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg"],
        designChartList:["https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg","https://www.vifa.cn/resource/userfiles/fileupload/202112/1468467204930342912.jpg"],
        isshow:false
    },
    UnploneDesign(e){
        this.setData({
            designChartList:e.detail
        })
    },
    unponedesign(){
        this.setData({
            issuccessMask:true
        })
    },
    HidesuccessMask(){
        this.setData({
            issuccessMask:false,
            isshow:true
        })
    },
    previewOrder(){
      let pages = getCurrentPages();
      let prevPage = pages[pages.length - 3]; //prevPage 是获取上一个页面的js里面的pages的所有信息。 -2 是上一个页面，-3是上上个页面以此类推。\\
      prevPage.setData({
        todo:''
      })
       wx.navigateBack({
         delta: 2,
       })
    },

    fakeCallback() {},

    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
        
    },

    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {

    },

    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {

    },

    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {

    },

    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {

    },

    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {

    },

    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {

    },

    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {

    }
})